import request from '@/utils/request'

//服务商列表
export function userList(params?: any) {
    return request.get({ url: '/server.server/userList', params })
}

//保存服务商信息
export function saveUser(params: any) {
    return request.post({ url: '/server.server/saveUser', params })
}

//服务商详情
export function userInfo(params?: any) {
    return request.get({ url: '/server.server/userInfo', params })
}
//服务商标签
export function serviceTag(params?: any) {
    return request.get({ url: '/server.server/tagList', params })
}

//删除服务商
export function delUser(params: any) {
    return request.post({ url: '/server.server/delUser', params })
}
//启用/禁用服务商
export function changeStatus(params: any) {
    return request.post({ url: '/server.server/changeStatus', params })
}


//分类列表
export function cateList(params?: any) {
    return request.get({ url: '/server.server/cateList', params })
}

//保存分类
export function saveCate(params: any) {
    return request.post({ url: '/server.server/saveCate', params })
}

//删除分类
export function delCate(params: any) {
    return request.post({ url: '/server.server/delCate', params })
}

//服务商审核通过
export function passUser(params: any) {
    return request.post({ url: '/server.server/passUser', params })
}
//服务商审核驳回
export function rejectUser(params: any) {
    return request.post({ url: '/server.server/rejectUser', params })
}

//发送表单通知
export function sendTable(params: any) {
    return request.post({ url: '/server.server/sendTable', params })
}
//获取表单详情
export function getDetail(params?: any) {
    return request.get({ url: '/server.server/getDetail', params })
}
//表单审核通过
export function passDetail(params: any) {
    return request.post({ url: '/server.server/passDetail', params })
}
//表单审核通过
export function rejectDetail(params: any) {
    return request.post({ url: '/server.server/rejectDetail', params })
}